package com.itcast.homework.controller;

import cn.hutool.core.io.IoUtil;

import com.itcast.homework.pojo.Dept;
import com.itcast.homework.pojo.Result;
import com.itcast.homework.service.impl.DeptServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.io.InputStream;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;

@RestController
public class DeptController {
    @Autowired
    private DeptServiceImpl deptService;
    @RequestMapping("/dept.html")
    public Result list2(){
        Result result = deptService.list2();
        //2. 响应数据
        return result;
    }

}
